package ca.tatham.senssim;

import java.util.Collection;
import java.util.LinkedList;
import java.util.List;

public interface Node
{
  public static final List<Node> s_allNodes = new LinkedList<Node>();

  void receivePacket(Packet packet);

  boolean sendPacket(Packet packet);

  void tick();

  void addLink(Link link);

  Collection<Node> getNeighbors();

  String toString();

  int getBytesReceived();

  int getBytesSent();

  char getOpenSymbol();

  char getCloseSymbol();

  boolean isAlive();

  int getTimeOfDeath();

  int getEnergyConsumed();
}
